﻿<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ExpenseApproveSelect.aspx.vb" Inherits="PubProject.ExpenseApproveSelect" %>
<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>日常报销申请</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<!-- Global -->
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<!-- Find -->
		<link rel="stylesheet" type="text/css" href="/_controls/find/find.css">
		<script language="javascript" src="/_controls/find/find.js"></script>
		<!-- Form -->
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
		<!-- Datetime & Number -->
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/_controls/datetime/time.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<!-- Utility-->
		<script language="javascript" src="/_controls/util/util.js"></script>		
		<script language="javascript" src="/PubProject/js/Public.js"></script>	
		<script type="text/javascript">
			
			//在线帮助文件
			var _MyHelpfile = "/Cbgl/HELP/6、合同付款/6.1、付款计划/付款计划.htm";
		 		 
			function window.onload()
			{   
				appQuery.clickQuery();
			}		
			
			// 例：自定义控件的 onquery 事件
			// 注意：除非是必须，否则不建议自定义控件的 onquery 事件
			function ClearAppFind()
			{
				appFind.clearQuery();
			}	
			
			//确定后发起审批
			function doOK()
			{
			    var oGrid = document.all("appIframe").contentWindow.appGrid
				// 选中行对象数组
				var arrTr = oGrid.frameElement.getSelected();
				if (!arrTr) return;
				
				var sOid = arrTr[0].oid;
				/*
				//发起审批，先做数据校验
	            if (!checkBeforeApprove(sOid,true,"日常报销"))
	            {
	                return ;
	            }*/

				window.returnValue = sOid + ";日常报销申请";
				window.close();
			}		
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" style="PADDING-RIGHT:15px;PADDING-LEFT:15px;PADDING-BOTTOM:15px;PADDING-TOP:15px">
		<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>
					<!-- 设计不带视图的页面时注意以下几点：
						1、table 的定义：id="appQuery" class="appQuery" onquery="_DoQuery()"；
						2、页面中 AppViewList 和 AppFind 控件各只能有一个。AppFind 控件只使用快速查询部分，
							项目和视图不建议使用；
						3、控件的命名标准：appQuery、appFind、appGridMenu、appGrid。除以上控件的命名外，
							其他“查询”控件的命名按照 appQueryCtl0...20 依次命名；
						4、如果默认出数据，需定义 onload="appQuery.clickQuery()"。
					-->
					<table id="appQuery" class="appQuery" onquery="_DoQuery()" style="FONT-SIZE: 9pt" height="100%"
						border="0" cellSpacing="0" cellPadding="0" width="100%">
						<tr height="1">
							<td>
								<cnt:AppFind id="appFind" runat="server" />
							</td>
						</tr>
						<tr height="10">
							<td></td>
						</tr>
						<tr>
							<td>
								<iframe id="appIframe" url="ExpenseApproveSelect_Grid.aspx" width="100%" height="100%" frameborder="0"
									scrolling="no"></iframe>
							</td>
						</tr>
						<tr height="40">
				            <td class="buttons">
					            <button style="WIDTH:70px" onclick="doOK()" id="btnOk" type="button">
						            确 定</button>&nbsp;&nbsp; <button style="WIDTH:70px" onclick="parent.window.close();" type="button">
						            取 消</button>
				            </td>
			            </tr>
						
					</table>
				</td>
			</tr>
		</table>
	</body>
</HTML>
